package cn.brilliantfuture.commentry.entity;

// Generated 2012-10-22 14:03:10 by Hibernate Tools 3.3.0.GA

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.validator.Length;
import org.hibernate.validator.NotNull;

/**
 * AlarmInfo generated by hbm2java
 */
@Entity
@Table(name = "alarm_info", catalog = "cabinet")
public class AlarmInfo implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	private Integer alarmInfoId;
	private int alarmType;
	private int lockersId;
	private String description;
	private Date insertTime;

	public AlarmInfo() {
	}

	public AlarmInfo(int alarmType, int lockersId, Date insertTime) {
		this.alarmType = alarmType;
		this.lockersId = lockersId;
		this.insertTime = insertTime;
	}

	public AlarmInfo(int alarmType, int lockersId,
			String description, Date insertTime) {
		this.alarmType = alarmType;
		this.lockersId = lockersId;
		this.description = description;
		this.insertTime = insertTime;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "alarm_info_id", unique = true, nullable = false)
	public Integer getAlarmInfoId() {
		return this.alarmInfoId;
	}

	public void setAlarmInfoId(Integer alarmInfoId) {
		this.alarmInfoId = alarmInfoId;
	}

	@Column(name = "alarm_type", nullable = false)
	public int getAlarmType() {
		return this.alarmType;
	}

	public void setAlarmType(int alarmType) {
		this.alarmType = alarmType;
	}

	@Column(name = "lockers_id", nullable = false)
	public int getLockersId() {
		return this.lockersId;
	}

	public void setLockersId(int lockersId) {
		this.lockersId = lockersId;
	}

	@Column(name = "description", length = 200)
	@Length(max = 200)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "insert_time", nullable = false, length = 19)
	@NotNull
	public Date getInsertTime() {
		return this.insertTime;
	}

	public void setInsertTime(Date insertTime) {
		this.insertTime = insertTime;
	}

}
